import React from 'react';
import { Form } from 'antd';
import { AxCreateForm } from '@/components/AxForm/AxCreateForm';
import { AxInputNumber, AxLabel, AxTextArea } from '@/components/AxForm/AxFormItem';

const Create: React.FC<any> = props => {
  const { form, ...rest } = props;

  return (
    <>
      <AxCreateForm
        form={form}
        title="经费充值"
        {...rest}
        items={[
          <AxLabel form={form} label="经费名称" field="campusId" value="探月工程" />,
          <AxLabel form={form} label="经费本编号" field="campusId1" value="S-245402" />,
          <AxLabel form={form} label="经费类型" field="campusId2" value="科研项目经费" />,
          <AxLabel form={form} label="经费总额" field="campusId2" value="￥20000" />,
          <AxLabel form={form} label="剩余金额" field="campusId2" value="￥200" />,
          <AxInputNumber form={form} label="充值金额" field="campusId" required />,
          <AxTextArea form={form} label="充值说明" field="campusId3" required />,
        ]}
      />
    </>
  );
};

export default Form.create<any>()(Create);
